package mytest.ssw.www.core;

import android.content.Context;

import java.util.HashMap;
import java.util.List;

import mytest.ssw.www.api.ActionCallbackListener;
import mytest.ssw.www.api.ApiResponse;
import mytest.ssw.www.mylibrary.DeptNode;
import mytest.ssw.www.mylibrary.StudentInfo;
import mytest.ssw.www.mylibrary.Contents;
import mytest.ssw.www.mylibrary.getTheContent;
import mytest.ssw.www.mylibrary.Student;
import mytest.ssw.www.mylibrary.UserInfo;

/**
 * 接收app层的各种Action
 * Created by 73409 on 2015/11/3.
 */
public interface AppAction {
    /**
     * 注册
     */
    public void register(String studentId, String password, ActionCallbackListener<Void> listener);

    /**
     * 登录
     */
    public void login(String accountnum, String password, ActionCallbackListener<Void> listener);
    public void GetSomeoneInfor(String num,ActionCallbackListener<ApiResponse<StudentInfo>> listener);
    public void GetUserInfo(String num,ActionCallbackListener<ApiResponse<UserInfo>> listener);
    public  void GetDeptNodeList(ActionCallbackListener<List<DeptNode>> listener);
    public void SearchInfo(HashMap<String,String> map,ActionCallbackListener<ApiResponse<List<Contents>>> listener);
    public List<Contents> SearchInfor(HashMap<String,String> map,ActionCallbackListener<ApiResponse<List<Contents>>> listener);
    public void modifyStuInfo(StudentInfo info,ActionCallbackListener<ApiResponse<Student>> listener);
    public  List<getTheContent> GetTheContentList(String reciver,ActionCallbackListener<List<getTheContent>> listener);
    public  void sendpost(String content, String sendPersonNum,String receiverNum, ActionCallbackListener<Void> listener);
    public String getNetworkInfo(Context context);
}
